package com.world.tg.pojo;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter(AccessLevel.PUBLIC)
@Setter(AccessLevel.PUBLIC)
public class Page implements Serializable {
    public static Integer num = 24;
    private double pages;
    private float total;

    public Page(float total){
        this.total = total;
        this.pages = Math.ceil(this.total/Page.num);
    }
}
